package org.jeecg.modules.business.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.business.outbound.service.IWmsOutReceiptTaskService;
import org.jeecg.modules.business.transfer.service.IPaperWarningService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 销售出库提醒
 *
 * @author gongwenkai
 * @version 1.0.0
 * @since 2023-12-04
 */
@Service
@Slf4j
public class OutboundTaskXSCKWarningJob implements Job {

    @Resource
    private IWmsOutReceiptTaskService wmsOutReceiptTaskService;


    @Override
    @Async
    public void execute(JobExecutionContext context) throws JobExecutionException {
        try {
            wmsOutReceiptTaskService.outboundTaskXSCKWarning();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
